home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_50308.txt < prev    next >
Text File  |  1991-02-27  |  478b  |  24 lines

  1. -- card: 50308 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. When 'if' statements are nested the 'else' clause is by default associated with the closest 'if' statement.  Braces can be used to force a different association:
  11.  
  12.     if (i < 10)
  13.     {
  14.         if (j == i)
  15.             done = 1;
  16.     }
  17.     else
  18.         done = 1;
  19.  
  20.  
  21.  
  22. -- part contents for background part 7
  23. ----- text -----
  24. 157